package hu.mapro.gwtui.client.browser;

import hu.mapro.gwtui.client.Action;
import hu.mapro.gwtui.client.MenuItem;
import hu.mapro.gwtui.client.action.Refreshable;
import hu.mapro.gwtui.client.widget.Command;
import hu.mapro.gwtui.client.widget.WidgetWrapper;
import hu.mapro.model.Getter;

import java.util.List;

import com.google.gwt.user.client.ui.Widget;

public interface Browser<T> extends TableBuilder<T>, Refreshable, WidgetWrapper {
	
	void setIdField(Getter<T, String> field);
	
	void setLoader(Loader<T> loader);
	
	public abstract void addToolBarItem(Widget element);
	
	List<T> getSelection();

	public abstract boolean addSelectionChangedAction(Action e);

	Command addToolButton();
	
}